package timer

import (
	"devops/service"
	"log"
	"time"
)

func Run() {
	defer func() {
		if r := recover(); r != nil {
			log.Println(r)
			Run()
		}
	}()
	ticker := time.NewTicker(time.Second * 10)
	for {
		select {
		case <-ticker.C:
			//go service.NewDevOps().SyncCiBuildEvent()
			go service.NewDevOps().UpdateDeployGroupsStatus()
		}
	}
}
